//package cate.game.train.hero;
//
//import com.ososx.api.ApiClass;
//import com.ososx.api.ApiField;
//import com.ososx.mongo.MongoMark;
//import com.ososx.mongo.MongoPO;
//import com.ososx.tcg.game.master.po.MasterPO;
//import com.ososx.tcg.play.bg.SideHeroBg;
//
//import java.util.Date;
//
//@ApiClass(note = "英雄展示")
//public class HeroDisplay extends MongoPO {
//
//    public static final String AUTO_DELETE_FIELD = "expiredDate";
//
//    @ApiField(note = "英雄")
//    @MongoMark
//    public HeroPO po;
//
//    @ApiField(note = "背景")
//    @MongoMark
//    public SideHeroBg bg;
//
//    @ApiField(note = "过期时间")
//    @MongoMark
//    public Date expiredDate;
//
//    public HeroDisplay() {}
//
//    public HeroDisplay(MasterPO master, String heroIdHex) {
//        this.expiredDate = new Date(System.currentTimeMillis() + 24 * 3600 * 1000);
//        if (master != null) {
//            this.po = master.heros.getItem(heroIdHex);
//            this.bg = new SideHeroBg().readFrom(master, this.po);
//        }
//    }
//}
